Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] change config tests to unmarshal only the config for that component #5895

Merged
merged 1 commit into from
Aug 11, 2022

Conversation

bogdandrutu
Copy link
Member

The main motivation for this is to allow components (including tests) to not depend on the "service" configuration and be reusable without the otelcol service.

If we agree on this we should do the same in contrib components.

Signed-off-by: Bogdan [email protected]

@bogdandrutu bogdandrutu marked this pull request as ready for review August 10, 2022 20:38
@bogdandrutu bogdandrutu requested review from a team and mx-psi August 10, 2022 20:38
…ponent

The main motivation for this is to allow components (including tests) to not depend on the "service" configuration and be reusable without the otelcol service.

Signed-off-by: Bogdan <[email protected]>
@codecov
Copy link

codecov bot commented Aug 10, 2022

Codecov Report

Merging #5895 (a3286b4) into main (c69aac5) will decrease coverage by 0.10%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #5895      +/-   ##
==========================================
- Coverage   91.56%   91.46%   -0.11%     
==========================================
  Files         195      195              
  Lines       11915    11915              
==========================================
- Hits        10910    10898      -12     
- Misses        795      807      +12     
  Partials      210      210              
Impacted Files Coverage Δ
exporter/loggingexporter/config.go 0.00% <0.00%> (-100.00%) ⬇️
processor/memorylimiterprocessor/config.go 0.00% <0.00%> (-100.00%) ⬇️
exporter/otlpexporter/config.go 0.00% <0.00%> (-40.00%) ⬇️
service/servicetest/configprovider.go 53.84% <0.00%> (-23.08%) ⬇️
exporter/otlphttpexporter/config.go 80.00% <0.00%> (-20.00%) ⬇️
extension/ballastextension/config.go 83.33% <0.00%> (-16.67%) ⬇️
receiver/otlpreceiver/config.go 84.00% <0.00%> (-4.00%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@bogdandrutu
Copy link
Member Author

/cc @mx-psi since you asked for decoupling more of the components.

Copy link
Member

@mx-psi mx-psi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I think this makes sense. It will be a ton of work in contrib though 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants